<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>业主管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript" src="${ctxScript}/pro/proPerson.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
<%--	<ul class="nav nav-tabs">--%>
<%--		<li class="active"><a href="${ctx}/pro/basPerson/">业主管理列表</a></li>--%>
<%--		<shiro:hasPermission name="pro:basPerson:edit"><li><a href="${ctx}/pro/basPerson/form">业主管理添加</a></li></shiro:hasPermission>--%>
<%--	</ul>--%>
	<form:form id="searchForm" modelAttribute="basPerson" action="${ctx}/pro/basPerson/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>身份证号码：</label>
				<form:input path="idCard" htmlEscape="false" maxlength="10" class="input-medium"/>
			</li>
			<li><label>业主姓名：</label>
				<form:input path="name" htmlEscape="false" maxlength="10" class="input-medium"/>
			</li>
			<li><label>所在楼道：</label>
				<form:input path="buildingName" htmlEscape="false" maxlength="10" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input id="btnSubmit1" class="btn btn-primary" type="reset" value="重置"/></li>
			<li class="btns">
				<input id="btnAdd" class="btn btn-yellow" style="background: #ffc266!important;" type="button" value="新建" onclick="newEdit('')"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>业主姓名</th>
				<th>身份证号</th>
				<th>联系方式</th>
				<th>所在楼道</th>
				<th>爱好兴趣</th>
				<shiro:hasPermission name="pro:basPerson:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="basPerson" varStatus="vs">
			<tr>
				<td>
						${vs.index+1}
				</td>
				<td>
						${basPerson.name}
				</td>
				<td>
						${basPerson.idCard}
				</td>
				<td>
						${basPerson.phone}
				</td>
				<td>
						${basPerson.buildingName}

				</td>
				<td>
						${basPerson.interest}

				</td>

				<shiro:hasPermission name="pro:basPerson:edit"><td>
					<a href="javascript:;" onclick="newEdit('${basPerson.id}')">修改</a>
					<a href="javascript:;" onclick="newView('${basPerson.id}')">查看</a>

<%--    				<a href="javascript:;" onchange="newEdit('${basPerson.id}')">修改</a>--%>
<%--    				<a href="javascript:;" onchange="newView('${basPerson.id}')">查看</a>--%>
					<a href="${ctx}/pro/basPerson/delete?id=${basPerson.id}" onclick="return confirmx('确认要删除该业主管理吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>